﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BilbilDAL;
using Common;
using Modles.DTO;
using Modles.Models;

namespace BilbilBLL
{
    public class UniversalFunctionalityServer
    {
        UserInfoDAL userInfoDAL = new UserInfoDAL();

        /// <summary>
        /// 根据用户信息表id打印用户信息表数据
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        public ResponseTool GetUserInfo(int Id)
        {
            if(Id == 0)
            {
                return ResponseTool.Fail("用户信息id不能为空");
            }
            UserInfo userInfo = userInfoDAL.GetUserInfo(Id);
            return ResponseTool.Succeed(userInfo);
        }
    }
}
